import React,{Component} from "react";
//子组件
import Child from './Child'
//父组件
import  DemoParent from './Parent'
class DemoCom extends Component {
    state = {  } 
    render() { 
        return (
            <div>
                <h1>父子传值</h1>
                <DemoParent></DemoParent>
            <Child></Child>
            </div>
        );
    }
}
 
export default DemoCom;